﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Services;
using WebClient.ServiceReference1;
using XyzServices;



namespace WebClient
{
    public partial class _Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        [WebMethod]
        public static int GetData(int a, int b)
        {
            ServiceReference1.CalculationServiceClient _client = new ServiceReference1.CalculationServiceClient("BasicHttpBinding_ICalculationService");
            CalculationDTO result = _client.Add(a,b);
            return result.Result;
        }

        protected void btn_Click(object sender, EventArgs e)
        {
            //ServiceReference1.CalculationServiceClient _client = new ServiceReference1.CalculationServiceClient("BasicHttpBinding_ICalculationService");
            //int result =  _client.Add(int.Parse(txt1.Text), int.Parse(txt2.Text));
            //lbl1.Text =  result.ToString();

        }
    }
}
